
package fr.mehfile.api.update;

import android.os.AsyncTask;

public abstract class Tasks extends AsyncTask<Object, Object, Object> {
    public static final int XML_READ_TASK_ID = 0;
    public static final int PARSER_TASK_ID = 1;
    public static final int VALIDATOR_TASK_ID = 2;
    public static final int UPDATE_DATABASE_TASK_ID = 3;
    public static final int SETTINGS_UPDATE_TASK_ID = 4;
    public static final int DOWNLOAD_IMAGE_TASK_ID = 5;

    private int taskId;
    private TasksListener listener;

    public Tasks(int taskId) {
        this.taskId = taskId;
    }

    public Tasks(int taskId, TasksListener listener) {
        this.taskId = taskId;
        this.listener = listener;
    }

    public int getTaskId() {
        return taskId;
    }

    public TasksListener getListener() {
        return listener;
    }
}
